#!/bin/bash

SOURCE=/backup/mirror/
DEST=/media
LOG=/tmp/restore-backup.log

rm -f "$LOG"
echo "########### drive restoration starting at $(date) ###########" | tee -a "$LOG"

rsync -ahvAE --delete --stats "$SOURCE" "$DEST" 2>&1 | tee -a "$LOG"

echo "########### drive restoration completed at $(date) ###########" | tee -a "$LOG"
notify-send -t 10000 " ### RESTORATION COMPLETE ###"
